package hanelsoft.vn.dictionaylearn.control.activity;

import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;

public class StartContentViewFromWidget extends Activity{
	SharedPreferences shareWidget;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		shareWidget = getSharedPreferences("ShareWidget", 0);
		String word = shareWidget.getString("word_widget", "");
		Intent i = new Intent(this, ContentView.class);
		i.putExtra("word", word);
		i.putExtra("db", shareWidget.getString("db", ""));
		i.putExtra("dbName",shareWidget.getString("dbName", ""));
		i.putExtra("style", shareWidget.getString("style", ""));
		i.putExtra("sourcesound", shareWidget.getString("sourcesound", ""));
		startActivity(i);
		finish();
	}
}
